<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../Public/css/basic.css"/>
<link rel="stylesheet" href="../Public/css/face.css"/>
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="../Public/js/sidebar.js"></script>
<script type="text/javascript">
   $(document).ready(function() {
       if($('p.remind').css('display') == 'block') {
           setTimeout(function() {
               $('p.remind').hide();
               history.back();
           }, 3000);
       } 
      $('form').submit(function() {
          if($('input.text').val() == '') {
              alert('请上传头像!');
              return false;
          }
      });
      
   });
</script>
<title>三原县信息网 -- 用户头像管理</title>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="header">
    <div class="top">
        <a href="__URL__/mySpace/user/<?php echo (cookie('user')); ?>" class="look" target="_blank">查看我的空间</a> <span><?php echo ($now); ?> <font style="color:#06f;"><?php echo ($hello); ?></font></span>
        <span class="a"><a href="__URL__/mySpace/user/<?php echo (cookie('user')); ?>" target="_blank" class="user"><?php echo (cookie('user')); ?></a> <a href="__ROOT__/member.php/Index/message/act/in" style="color:#333;">我的消息 <?php if(!empty($notread)): ?><strong><?php echo ($notread); ?></strong><?php endif; ?></a> <a href="__URL__/logout" style="color:#333;">退出</a></span>
    </div>
    <div class="logo"><a href="__ROOT__"><img src="../Public/images/logo.gif"/></a> <h3>用户中心</h3></div>
</div>
</body>
</html>
<div id="map"><img src="../Public/images/loc.gif" /> <a href="__ROOT__/member.php">用户中心</a> &gt; 更新头像</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="sidebar">
    <dl>
        <dt>
        <?php if($face == ''): ?><img src="../Public/images/noavatar_small.gif" />
        <?php else: ?>
        <img src="__ROOT__/<?php echo ($face); ?>" /><?php endif; ?>
        </dt>
        <dd><a href="__ROOT__/member.php"><img src="../Public/images/house.gif" style="position:relative;top:2px;right:3px;"/>用户首页</a></dd>
        <dd><a href="__ROOT__/member.php/Index/face"><img src="../Public/images/image.gif" style="position:relative;top:4px;right:3px;"/>头像管理</a></dd>
        <dd><a href="__ROOT__/member.php/Index/userInfo"><img src="../Public/images/note.gif" style="position:relative;top:4px;right:3px;"/>完善资料</a></dd>
        <dd><a href="__ROOT__/member.php/Index/myInfo"><img src="../Public/images/info.gif" style="position:relative;top:4px;right:3px;"/>信息管理</a></dd>
        <dd><a href="__ROOT__/member.php/Index/message/act/in"><img src="../Public/images/chat.gif" style="position:relative;top:4px;right:3px;"/>我的消息</a></dd>
        <dd><a href="__ROOT__/member.php/Index/pay/act/pay"><img src="../Public/images/coins.gif" style="position:relative;top:4px;right:3px;"/>充值服务</a></dd>
        <dd><a href="__ROOT__/member.php/Index/upPass"><img src="../Public/images/password.gif" style="position:relative;top:4px;right:3px;"/>密码管理</a></dd>
    </dl>
</div>
</body>
</html>
<div id="main">
    <div class="up">
        <h3>头像更新</h3>
        <p class="remind" style="display:<?php echo ($s); ?>"><img src="../Public/images/valid.gif" style="position:relative;top:3px;right:3px;"/>头像更新成功!</p>
        <form name="add" method="post">
        <dl>
            <dd>选择文件：　<input type="text" name="face" readonly="readonly" class="text"/>　<input type="button" value="上传" onclick="window.open('__APP__/Public/upload', 'pic', 'width=400,height=150,top=200,left=420');" style="width:60px;"/></dd>
            <dd><span class="middle">预览头像：</span>　<img src="../Public/images/mpview.gif" id="view"/></dd>
            <dd class="sub"><input type="submit" name="send" value="更新头像" style="width:100px;height:30px;border:1px solid #ccc;cursor:pointer;border-radius:5px;"/></dd>
            <input type="hidden" id="root" value="__ROOT__"/>
        </dl>
        </form>
    </div>
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="footer">
    <p class="f">©三原县信息网 晋 ICP备12009119号</p>
    <p>Powered by 信息网 xxx.xxxx.xx</p>
</div>
</body>
</html>
</body>
</html>